package com.onyx.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName customer_follow
 */
public class CustomerFollow implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 跟进客户id
     */
    private Long customerId;

    /**
     * 创建用户id
     */
    private Long userId;

    /**
     * 跟进时间
     */
    private Date createTime;

    /**
     * 主题
     */
    private String subject;

    /**
     * 跟进内容
     */
    private String content;

    /**
     * 下次跟进时间
     */
    private Date nextTime;

    /**
     * 下次跟进内容
     */
    private String nextContent;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 跟进客户id
     */
    public Long getCustomerId() {
        return customerId;
    }

    /**
     * 跟进客户id
     */
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    /**
     * 创建用户id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 创建用户id
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 跟进时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 跟进时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 主题
     */
    public String getSubject() {
        return subject;
    }

    /**
     * 主题
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * 跟进内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 跟进内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 下次跟进时间
     */
    public Date getNextTime() {
        return nextTime;
    }

    /**
     * 下次跟进时间
     */
    public void setNextTime(Date nextTime) {
        this.nextTime = nextTime;
    }

    /**
     * 下次跟进内容
     */
    public String getNextContent() {
        return nextContent;
    }

    /**
     * 下次跟进内容
     */
    public void setNextContent(String nextContent) {
        this.nextContent = nextContent;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustomerFollow other = (CustomerFollow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getSubject() == null ? other.getSubject() == null : this.getSubject().equals(other.getSubject()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getNextTime() == null ? other.getNextTime() == null : this.getNextTime().equals(other.getNextTime()))
            && (this.getNextContent() == null ? other.getNextContent() == null : this.getNextContent().equals(other.getNextContent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getSubject() == null) ? 0 : getSubject().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getNextTime() == null) ? 0 : getNextTime().hashCode());
        result = prime * result + ((getNextContent() == null) ? 0 : getNextContent().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", customerId=").append(customerId);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", subject=").append(subject);
        sb.append(", content=").append(content);
        sb.append(", nextTime=").append(nextTime);
        sb.append(", nextContent=").append(nextContent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}